<?php
namespace Home\Controller;
use Think\Controller;
class AddressController extends Controller {
    public function getCity() {
        $province_id = $_POST['province_id'];
        $Areas   =   M('areas');
        $data = $Areas->where('parent_id='.$province_id)->select(); 
        echo json_encode($data);
    }

}